# Makefile for CAN send and receive programs

CC = gcc
CFLAGS = -Wall -Wextra -O2
LDFLAGS = -pthread

all: can_send can_recv

can_send: can_send.c
	$(CC) $(CFLAGS) -o can_send can_send.c $(LDFLAGS)

can_recv: can_recv.c
	$(CC) $(CFLAGS) -o can_recv can_recv.c $(LDFLAGS)

clean:
	rm -f can_send can_recv

.PHONY: all clean